package org.dey.controller;

import org.dey.pojo.Questions;
import org.dey.service.QuestionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class QuestionsController {
    @Autowired
    QuestionsService questionsService;

    @GetMapping("/queryQList.do")
    public List<Questions> queryQList() {
        List<Questions> questionsList = questionsService.queryQList();
        return questionsList;
    }


}
